package org.chen.common.task;

import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 任务执行结果
 */
@Data
public class TaskExecutionResult {
    private String taskId;
    private String taskName;
    private LocalDateTime executeTime;
    private boolean success;
    private String errorMessage;
    private List<SearchResult> searchResults;
    private List<String> exportedFiles;
    private long totalDuration;
    
    @Data
    public static class SearchResult {
        private String searchPeriod;        // 搜索时间段
        private String departDate;          // 出发日期
        private String returnDate;          // 返程日期（往返时）
        private int flightCount;            // 找到的航班数量
        private String lowestPrice;         // 最低价格
        private long searchDuration;        // 搜索耗时
        private String exportFileName;      // 导出文件名
    }
}